package com.springday3aop;

import com.springday3aop.config.SpringConfig;
import com.springday3aop.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bookDao = ctx.getBean(BookDao.class);
//        System.out.println(bookDao);
//        System.out.println(bookDao.getClass());
//        bookDao.update();
//        bookDao.select();
        bookDao.findName(2, "root123");

    }
}
